From: Juanma Barranquero Date: Thu, 14 Nov 2002 07:16:14 +0000 (+0000) Subject: (find-tag-default): Copy text at point without properties. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~29757 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2156a423e9c35aacbae0f26281b82e3118151450;p=emacs.git (find-tag-default): Copy text at point without properties. --- diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 8d988f45341..e3154ae4c4a 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el @@ -776,11 +776,12 @@ Assumes the tags table is the current buffer." (save-excursion (end-of-line) (point)) t)) (progn (goto-char (match-end 0)) - (buffer-substring (point) - (progn (forward-sexp -1) - (while (looking-at "\\s'") - (forward-char 1)) - (point)))) + (buffer-substring-no-properties + (point) + (progn (forward-sexp -1) + (while (looking-at "\\s'") + (forward-char 1)) + (point)))) nil))) ;; Read a tag name from the minibuffer with defaulting and completion.